ihelpuoo.weboo.runtime.ModuleControllerSet = function()
{
	this.controllers = null;
	this.HTML = null;
}

ihelpuoo.weboo.runtime.ModuleControllerSet.prototype
=
{
	valueOf: function(ele)
	{
		this.controllers = new Array();
		var children = ele.getElementsByTagName("controller");
		for(var i=0;i<children.length;i++)
		{
			var c = new ihelpuoo.weboo.runtime.ModuleController();
			c.valueOf(children.item(i));
			this.controllers.push(c);
		}
	}
	
	,
	render: function()
	{
		if(this.HTML == null)
		{
			this.HTML = new ihelpuoo.weboo.runtime.ModuleControllerSetHTML();
			if(null!=this.controllers)
				for(var i=0;i<this.controllers.length;i++)
				{
					var c = this.controllers[i];
					this.HTML.addController(c.name,c._for);
				}
		}
		return this.HTML.shell;
	}
}